﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YouTravel.DomainModels;
using YouTravel.Framework.Enums;

namespace YouTravel.ViewModels
{
    /// <summary>
    /// 用户前台属性
    /// </summary>
    public class UserViewModel
    {
        public int ID { get; set; }
        /// <summary>
        /// 用户名
        /// 员工登录账号(唯一)(小于20)
        /// </summary>
        public string Login { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 帐号类型
        /// </summary>
        public UserType Type { get; set; }
        /// <summary>
        /// 所属机构ID
        /// </summary>
        public int? BranchId { get; set; }
        /// <summary>
        /// 是否专线管理员
        /// </summary>
        public bool IsSpecialManager { get; set; }
        /// <summary>
        /// 所属机构
        /// </summary>
        public BranchViewModel Branch { get; set; }
        /// <summary>
        /// 专线
        /// </summary>
        public int? SpecialId { get; set; }
        /// <summary>
        /// 专线
        /// </summary>
        public SpecialViewModel Special { get; set; }
        /// <summary>
        /// 用户状态
        /// </summary>
        public UserStatus Status { get; set; }
        /// <summary>
        /// 菜单列表
        /// </summary>
        public IEnumerable<MenuViewModel> Menus { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// Token 值 
        /// </summary>
        public string Token { get; set; }
    }
}
